package com.pointmi.loyaltyservice;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

import com.pointmi.loyaltydao.Loyalty;
import com.pointmi.loyaltydao.LoyaltyDAO;

public class LoyaltyServiceImpl implements LoyaltyService {
	
	@Autowired
	@Qualifier("loyaltyDAO")
	LoyaltyDAO loyaltyDao;
	
	public void setLoyaltyDAO(LoyaltyDAO loyaltyDao)
	{
		this.loyaltyDao = loyaltyDao;
	}

	public Loyalty checkLoyalty(String customerId) {

		return loyaltyDao.checkLoyalty(customerId);		
	}

	public void saveOrUpdate(Loyalty loyalty) {
		loyaltyDao.saveOrUpdate(loyalty);		
	}

	

	

}
